#include"SeqList.h"

int main() {
    SeqList<int> s1;
    int a[] = {1, 2, 3, 4, 5};
    SeqList<int> s2(a, sizeof(a) / sizeof(int));
    cout << "s2的数据为：" ;
    s2.SeqListPrint();
    cout << "在下标为2的位置插入6：";
    s2.SeqListInsert(2, 6);
    s2.SeqListPrint();
    cout << "删除下标为3位置的数据：";
    s2.SeqListErase(3);
    s2.SeqListPrint();
    cout << "查找数据6的下标：" << s2.SeqListFind(6) << endl;
    cout << "获取下标为4位置的数据：" << s2.Get(4) << endl << endl;

    char b[] = {"abcde"};
    SeqList<char> s3(b, sizeof(b) / sizeof(char));
    cout << "s3的数据为：";
    s3.SeqListPrint();
    cout << "在下标为2的位置插入6：";
    s3.SeqListInsert(2, 'r');
    s3.SeqListPrint();
    cout << "删除下标为3位置的数据：";
    s3.SeqListErase(3);
    s3.SeqListPrint();
    cout << "查找数据z的下标：" << s3.SeqListFind(6) << endl;
    cout << "获取下标为4位置的数据：" << s3.Get(4) << endl;

    return 0;

}